package com.monster.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.monster.mapper.MemberMapper;
import com.monster.pojo.Member;
import com.monster.service.MemberService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements MemberService {

    @Override
    @LcnTransaction
    public Integer saveMemberService(Member member) {
        save(member);
        return member.getId();
    }

    @Override
    public Member IsExitMember(String idCard) {
        return  baseMapper.IsExitMember(idCard);
    }
}
